<?php
session_start();
$ime = $_GET['ime'];
if (!empty($_SESSION['cart'][$ime])) {
    unset($_SESSION['cart'][$ime]);
}

header('Location: cart.php');
?>